package com.shcowin.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.shcowin.entity.Products;
 
public interface ProductsDao {
    
    public boolean add(Products entity) throws DataAccessException;
    
    public Products getById(Integer id) throws DataAccessException;
    
    public Products getByName(String name) throws DataAccessException;
    
    public List<Products> getAll() throws DataAccessException;
    
    public List<Products> getByHomeMark();
    
    public int getHomeMarkCount();
    
    public List<Products> getByPage(int start,int end) throws DataAccessException;
    
    public void del(int id) throws DataAccessException;
    
    public int getCount() throws DataAccessException;
    
    public boolean edit(Products entity) throws DataAccessException;
    
}
